#ifndef DETECPOSITION_H
#define DETECPOSITION_H
#include "opencv2/opencv.hpp"
using namespace cv;
class DetecPosition
{
    int width, height;
    int cnt[255];
private:
    int backtrack(int x, int y, int idx);
    uchar *data;
public:
    CvPoint Detect(IplImage *src, IplImage *dst);

};
int otsu(IplImage *, IplImage *);
uchar detectCode(CvPoint, int, int);
int findContours(IplImage *src);
#endif // DETECPOSITION_H
